/**
 * 
 */
package br.financeiro.entities;

import br.financeiro.enums.TypeMail;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * @author evaldosavio
 * 
 */
@DatabaseTable( tableName = "mail" )
public class Mail {

	@DatabaseField( generatedId = true )
	private int id;
	@DatabaseField
	private String mail;
	@DatabaseField
	private TypeMail type;
	@DatabaseField( foreign = true, columnName = "person_id", foreignAutoRefresh = true )
	private Person person;

	public Mail() {}

	public int getId() {
		return id;
	}

	public void setId( int id ) {
		this.id = id;
	}

	public String getMail() {
		return mail;
	}

	public void setMail( String mail ) {
		this.mail = mail;
	}

	public TypeMail getType() {
		return type;
	}

	public void setType( TypeMail type ) {
		this.type = type;
	}

	public Person getPerson() {
		return person;
	}

	public void setPerson( Person person ) {
		this.person = person;
	}

}
